
public class test
{

   /**
    * @param args
    */
   public static void main(String[] args)
   {
      CircularLinkedList<String> a = new CircularLinkedList<String>();
      
      a.add("1");
      a.add("2");
      a.add("3");
      a.add("4");
      System.out.println(a);
      System.out.println("last :"+a.last());
      System.out.println("head: "+a.head());
     // System.out.println("third: "+a.delete());
      
      
      a.delete();
      System.out.println(a);
      a.delete();
      System.out.println(a);
      a.delete();
      System.out.println(a);
      System.out.println(a.last());
      a.delete();
      System.out.println(a);
   }
}
